import request from '@/utils/request'

// 查询积分获取通道列表
export function listAppIntegralGainWay(query) {
  return request({
    url: '/app/appIntegralGainWay/list',
    method: 'get',
    params: query
  })
}

// 查询积分获取通道详细
export function getAppIntegralGainWay(id) {
  return request({
    url: '/app/appIntegralGainWay/' + id,
    method: 'get'
  })
}

// 新增积分获取通道
export function addAppIntegralGainWay(data) {
  return request({
    url: '/app/appIntegralGainWay',
    method: 'post',
    data: data
  })
}

// 修改积分获取通道
export function updateAppIntegralGainWay(data) {
  return request({
    url: '/app/appIntegralGainWay',
    method: 'put',
    data: data
  })
}

// 删除积分获取通道
export function delAppIntegralGainWay(id) {
  return request({
    url: '/app/appIntegralGainWay/' + id,
    method: 'delete'
  })
}
